package day03;

import java.util.Date;

public class Demo05 {

	public static void main(String[] args) {

		Date date=new Date();
		long l=date.getTime();
		long time=System.currentTimeMillis();
		
		System.out.println(l);
//		System.out.println(1970+l/1000/60/60/24/365);
//		System.out.println(System.currentTimeMillis());
//		date.setTime(0);
//		date.setTime(1000L*60*60*24*365*2);
		date.setTime(-1000L*60*60*24*365*3);
		System.out.println(date.getYear());
		System.out.println(date);
		
		
		
	}

}
